home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Experimental BBS Explossion 3
/
Experimental BBS Explossion III.iso
/
msdos
/
s3tool10.zip
/
LOG30.DOC
< prev
next >
Wrap
Text File
|
1991-10-15
|
4KB
|
110 lines
LOGit v3.0
By
George Spafford
October 15, 1991
Purpose:
To allow a user to insert a command in a batch file and thus log the
activity to a log file of their choice WITH a comment of their choice,
the date and the time. The program must also be readily adaptable for any
use, be it BBS, corporate or home.
Procedure:
To run LOGit, it has the following command line switches:
LOGit /c:my_comment /l:c:\dir\myname.log
/C: Okay, this is the comment that you wish to have appended in
your log file. Note the underscore (_). It is used on the command
line to indicate that you would like the comment to have a space
in that position. So, when you look at the log file that the
above entry would create, it would look like "MY COMMENT:"
LOGit changes all text to upper-case and it adds the colon to the
end of the text. You can omit this entry if you so desire.
/L: This is the name of the log file that you would like the log entry
to be appended to. This can include the drive and path.
For example: LOGit /C:Hiya_activated /L:c:\Hiya.log
You can use any naming scheme you want.
/? This brings up a quick help screen.
Suggestions:
With the comments, you can enter descriptive terms for your log file. For
example, in your controlling batch file you might have:
@echo off
cls
Echo Now Loading Data Files
Logit /c:Data_load_started /l:project.log
process.exe mydata.txt
logit /c:initial_process_completed /l:project.log
sort mydata.txt
logit /c:sort_completed /l:project.log
import mydata.txt
logit /c:import_complete /l:project.log
In your log file, the following would be appended (with the appropriate time
and date):
10-14-91 13:55:55 : DATA LOAD STARTED
10-14-91 14:00:00 : INITIAL PROCESS COMPLETED
10-14-91 14:05:00 : SORT COMPLETED
10-14-91 14:15:00 : IMPORT COMPLETED
To clean a log up, you might want to put an extra LOGit at the end with a
comment like: /C:------------------------------------------.
It gives a readily identifiable separator (It will also have a date
and time added to it - just food for thought).
History:
10/15/91 v3.0
Corrected a bug that conflicted with the use of a carat "^" on the
command line with some versions of DOS. An underscore character
is now used in its place as a space holder.
Also changed the log entry order to:
DATE TIME : Comment
This helped to line the entries up & thus make the log easier to read.
10/01/91 v2.0
Added user definable log comments using the /C: switch.
--------------------------------------------------------------------------
I hope this program helps you evaluate some of your problems
or even makes some solutions/benefits clear. This program is
released as shareware. Its price is $5 for each concurrently
used copy. If you have any suggestions or comments, I'd REALLY
like to hear those too.
Sincerely,
George Spafford
3001 LakeShore Drive, #329
St. Joseph, MI 49085
Data: (616) 468-5026 Queued Access BBS 14.4Kb USR Dual HST
FIDOnet: 1:227/250
LOGit IS DISTRIBUTED AS IS. THE AUTHOR (GEORGE SPAFFORD) MAKES NO
WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
TO WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE,
WITH RESPECT TO THIS SOFTWARE AND DOCUMENTATION. IN NO EVENT SHALL
THE AUTHOR BE LIABLE FOR ANY DAMAGES, INCLUDING LOST PROFITS, LOST
SAVINGS, OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OF OR THE INABILITY TO USE THIS PROGRAM.
-------------------------------------------------------------------------